/*
 * @Author jiangzhiwei
 * @Date 2023-07-20 14:42:58
 * @LastEditors jiangzhiwei
 * @LastEditTime 2023-07-27 15:50:46
 * @FilePath \test-cron\src\components\yc-cron\utils\proputil.js
 * @Description 
 */
import { isVue2, Vue2 } from 'vue-demi'

/** 给目标对象赋值。主要解决vue2数据变化后没有监听到的问题 */
export function setValue (target, key, value) {
  if (isVue2) {
    Vue2.set(target, key, value)
  } else {
    target[key] = value
  }
}